<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8" />
        <title>首页</title>
        <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css" />
        <style type="text/css">
            .order-list a {
                position: relative;
            }

            .order-list span {
                float: right;
                margin-right: 20px;
            }
        </style>
    </head>
    <body>
        
   
<include file="Index/head"/>
        <div class="wrapper main-wrapper wrapper-content ">
            <div class="page-menubar">
                <ul class="menu-head-top">
                    <li class="active">
                        <a href="{:U('Login/logout')}&amp;r=order"><img src="__PUBLIC__/images/ic-1.png" alt="" class="com-icon">首页概述 <i class="fa fa-caret-right"></i></a>
                    </li>
                </ul>
            </div>
            <!--主要内容-->
            <div class="page-content" style="display: block;">
                <!--内容标题-->
                <div class="page-heading">
                    <h2>订单统计</h2>
                </div>
                <!--图标-->
                <div class="row">
                    <!--第一块-->
                    <div class="col-md-6 col-sm-6">
                        <div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
                            <div class="ibox-title">
                                <span class="label label-primary pull-left">历史总成交</span>
                                <span class="pull-right">人均消费 : ¥ <span class="today-avg">{$zuihou}</span></span>
                                <h5></h5>
                            </div>
                            <div class="ibox-content">
                                <div class="row">
                                    <div class="col-md-6 text-center">
                                        成交量
                                        <h2 class="no-margins today-count">{$z_order}</h2>
                                    </div>
                                    <div class="col-md-6 text-center">
                                        成交额
                                        <h2 class="no-margins">¥ <span class="today-price">{$z_price}</span></h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <!--第一块-->
                    <div class="col-md-6 col-sm-6">
                        <div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
                            <div class="ibox-title">
                                <span class="label label-primary pull-left">今日成交</span>
                                <span class="pull-right">人均消费 : ¥ <span class="today-avg"><?php echo sprintf("%.2f",$price1/$order1);?></span></span>
                                <h5></h5>
                            </div>
                            <div class="ibox-content">
                                <div class="row">
                                    <div class="col-md-6 text-center">
                                        成交量
                                        <h2 class="no-margins today-count">{$order1}</h2>
                                    </div>
                                    <div class="col-md-6 text-center">
                                        成交额
                                        <h2 class="no-margins">¥ <span class="today-price"><?php echo sprintf("%.2f",$price1);?></span></h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--第二块-->
                    <div class="col-md-6 col-sm-6">
                        <div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
                            <div class="ibox-title">
                                <span class="label label-success pull-left">昨日成交</span>
                                <span class="pull-right">人均消费 : ¥ <span class="yesterday-avg"><?php echo sprintf("%.2f",$price2/$order2);?></span></span>
                                <h5></h5>
                            </div>
                            <div class="ibox-content">
                                <div class="row">
                                    <div class="col-md-6 text-center">
                                        成交量
                                        <h2 class="no-margins yesterday-count">{$order2}</h2>
                                    </div>
                                    <div class="col-md-6 text-center">
                                        成交额
                                        <h2 class="no-margins">¥ <span class="yesterday-price">{$price2}</span></h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--第三块-->
                    <div class="col-md-6 col-sm-6">
                        <div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
                            <div class="ibox-title">
                                <span class="label label-warning pull-left">本周成交</span>
                                <span class="pull-right">人均消费 : ¥ <span class="seven-avg"><?php echo sprintf("%.2f",$price3/$order3);?></span></span>
                                <h5></h5>
                            </div>
                            <div class="ibox-content">
                                <div class="row">
                                    <div class="col-md-6 text-center">
                                        成交量
                                        <h2 class="no-margins seven-count">{$order3}</h2>
                                    </div>
                                    <div class="col-md-6 text-center">
                                        成交额
                                        <h2 class="no-margins">¥ <span class="seven-price"><?php echo sprintf("%.2f",$price3);?></span></h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--第四块-->
                    <div class="col-md-6 col-sm-6">
                        <div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
                            <div class="ibox-title">
                                <span class="label label-danger pull-left">本月成交</span>
                                <span class="pull-right">人均消费 : ¥ <span class="month-avg"><?php echo sprintf("%.2f",$price4/$order4);?></span></span>
                                <h5></h5>
                            </div>
                            <div class="ibox-content">

                                <div class="row">
                                    <div class="col-md-6 text-center">
                                        成交量
                                        <h2 class="no-margins month-count">{$order4}</h2>
                                    </div>
                                    <div class="col-md-6 text-center">
                                        成交额
                                        <h2 class="no-margins">¥ <span class="month-price">{$price4}</span></h2>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins" style="border: 1px solid #e7eaec">
                            <div class="ibox-title">
                                <h5>交易走势图</h5>
                            </div>
                            <div class="ibox-content" style="height: 400px;">
                                <div id="main" class="col-md-12 col-sm-12 col-xs-12" style="height:350px;"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    <script>
        var datas = {$tongji2['riqi']};
        var prices = {$tongji2['price']};
        var orders = {$tongji2['order']};
    </script>
    <script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/Leader/js/echarts.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/Leader/js/tubiao.js" type="text/javascript" charset="utf-8"></script>

</html>